<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>后台管理</title>
    <link rel="stylesheet" type="text/css" href="/resources/easyui/themes/default/easyui.css">
    <link rel="stylesheet" type="text/css" href="/resources/easyui/themes/icon.css">
    <script type="text/javascript" src="/resources/easyui/jquery.min.js"></script>
    <script type="text/javascript" src="/resources/easyui/jquery.easyui.min.js"></script>
</head>

<body>
<div class="easyui-panel" title="登录" style="width:100%;width:400px;padding:30px 60px;">
    <div style="margin-bottom:20px">
        <input class="easyui-textbox" id="usern" name="usern" style="width:100%"
               data-options="label:'用户名:',required:true" value=""/>
    </div>
    <div style="margin-bottom:20px">
        <input class="easyui-textbox" type="password" id="pwd" name="pwd" style="width:100%"
               data-options="label:'密码:',required:true" value=""/>
    </div>
    <div style="text-align:center;padding:5px 0">
        <a href="javascript:void(0)" class="easyui-linkbutton" onclick="submitForm()" style="width:80px">提交</a>
    </div>
</div>
<script type="text/javascript">
    function submitForm() {
        $.post("/dologin", {
            usern: $("#usern").val(),
            pwd: $("#pwd").val()
        }, function () {
            window.location.href = "/list";
        });
    }
</script>
</body>
</html>